//
//  ICMCreateFileView.h
//  ICrEAM
//
//  Created by kuroro on 16/11/9.
//  Copyright © 2016年 mac. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "ICMTitleTextFeildView.h"
#import "ICMTitleTextView.h"
#import "ICMBottomBarView.h"
#import "ICMSynchronizeModel.h"
#import "ICMSelecteItemDataView.h"
#import "CustomRecordModel.h"
#import "SelectAreaPrefixView.h"
#import "ICMInputAreaView.h"

@protocol ICMCreateFileViewDelegate <NSObject>

@optional

- (void)clickSave:(CustomRecordModel *)model;

- (void)clickQRCodeBtnWithType:(int)type;
-(void)textFiledShouldReturnWithText:(NSString *)text isVin:(BOOL)isVin;

@end

//快速建档
@interface ICMCreateFileView : UIView<ICMBottomBarViewDelegate,PopoverSelectionViewControllerDelegate,ICMTitleTextFeildViewDelegate,ICMSelecteItemDataViewDelegate,SelectAreaPrefixViewDelegate,ICMInputAreaViewDelegate>

@property (nonatomic, strong) ICMTitleTextFeildView *ownerCityView;

@property (nonatomic, strong) ICMTitleTextFeildView *ownerTownView;
@property (nonatomic, strong) ICMTitleTextFeildView *ownerSexView;
@property (nonatomic, strong) ICMTitleTextFeildView *carlifeView;
@property (nonatomic, strong) ICMTitleTextFeildView *ownerPropertyView;
@property (nonatomic, strong) ICMTitleTextFeildView *ownerShengView;
@property (nonatomic, strong) ICMTitleTextFeildView *vinNumberView;
@property (nonatomic, strong) ICMTitleTextFeildView *carXiView;
//车牌号选择其他后弹出的输入界面
@property (nonatomic, strong) ICMInputAreaView *inputAreaView;

//省市县信息
@property (nonatomic, strong) NSArray *cityDataArray;
@property (nonatomic, strong) ICMTitleTextFeildView  *carBrandView;
@property (nonatomic, strong) ICMTitleTextFeildView  *carTypeView;

@property (nonatomic, strong) TPKeyboardAvoidingScrollView *bigScrollView;

//@property (nonatomic,strong) ICMTitleTextFeildView *selectAreaView;
@property (nonatomic, strong) ICMTitleTextFeildView *selectAreaView;          //车牌前缀
@property (nonatomic, strong) ICMTitleTextFeildView *plateNumberView;
@property (nonatomic, strong) SelectAreaPrefixView *selectAreaPrefixView;
@property (nonatomic,strong) ICMTitleTextFeildView *dateView;
@property (nonatomic,strong) ICMTitleTextFeildView *nameView;
@property (nonatomic,strong) ICMTitleTextFeildView *linkmanView;
@property (nonatomic,strong) ICMTitleTextFeildView *linkmanMobelView;
@property (nonatomic,strong) ICMTitleTextFeildView *natureView;
//@property (nonatomic,strong) ICMSynchronizeModel *model;
@property (nonatomic,strong) CustomRecordModel *customModel;

@property (nonatomic, strong) NSString *noStr;

@property (nonatomic, weak) id<ICMCreateFileViewDelegate>delegate;
@property (nonatomic, strong) NSDate *selectedDate;

//品牌车系车型
@property (nonatomic, strong) NSArray *carBrandDataArray;

+ (instancetype)creatICMCreateFileViewWithFrame:(CGRect)frame withType:(NSInteger)type;//type1=预约单，2接车单
@property(nonatomic,copy)NSString *brandStr;

@property(nonatomic,assign)NSUInteger type;


@end
